<?php
//美好的晚上从连接数据库开始
$dbi = new PDO('mysql:host=localhost;dbname=test','root','root');
$dbi->exec('set names utf8');
return $dbi;
?>